package com.company.nowcoder;

import java.util.Scanner;

/**
 * @author jrue
 * @description https://www.nowcoder.com/practice/fc72d3493d7e4be883e931d507352a4a?tpId=98&tqId=32827&rp=1&ru=%2Fta%2F2019test&qru=%2Fta%2F2019test%2Fquestion-ranking&tPage=1
 * @date 2019/12/9 9:43
 * 牛牛去犇犇老师家补课，出门的时候面向北方，但是现在他迷路了。虽然他手里有一张地图，但是他需要知道自己面向哪个方向，请你帮帮他。
 */
public class LoseWay {

    public static void main(String[] args) {
        char[] map = new char[]{'W', 'N' ,'E','S'};
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int res = 1;
        String s = sc.next();
        for (int i = 0; i < n; i++) {
            char c = s.charAt(i);
            if (c == 'R') {
                res++;
                if (res > map.length - 1) res = 0;
            }
            else if (c == 'L') {
                res--;
                if (res < 0) res = map.length - 1;
            }
        }
        System.out.println(map[res]);
    }
}
